﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Linq
{
    public static class Collection
    {
        public static IEnumerable<T> WhereAll<T>(this IEnumerable<T> collection, IEnumerable<Func<T, bool>> func)
        {
            foreach (var item in func)
		        collection = collection.Where(item);

            return collection;
        }
    }
}
